package com.yhk.wuchat.common.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @version 1.0
 * @Author moresuo
 * @Date 2024/4/9 16:57
 * @注释
 */
@AllArgsConstructor
@Getter
public enum CommonErrorEnum implements ErrorEnum{
    PARAM_INVALID(-2,"参数校验失败"),
    SYSTEM_ERROR(-1,"系统异常"),
    BUSINESS_ERROR(0,"{0}"),
    LOCK_LIMIT(-3,"请求太频繁了，请稍后再试");
    private final Integer code;
    private final String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
